﻿@using System.Globalization
@using Abp.Configuration
@using Abp.Configuration.Startup
@using Abp.Web.Security.AntiForgery
@using KelonProud.Configuration
@using KelonProud.Web.Resources
@using Microsoft.AspNetCore.Hosting.Internal
@inject KelonProud.Timing.AppTimes AppTimes
@inject IAbpAntiForgeryManager AbpAntiForgeryManager
@inject IMultiTenancyConfig MultiTenancyConfig
@inject IWebResourceManager WebResourceManager
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, HonkSoft.Web.Mvc

@{
    AbpAntiForgeryManager.SetCookie(Context);
}
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="~/favicon.ico">

    <title>HonkSoft</title>

    <environment names="Development">
        <link href="~/lib/bootstrap/dist/css/bootstrap.css" rel="stylesheet" asp-append-version="true" />
        <link href="~/lib/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet" />
        <link href="~/lib/ztree/css/bootstrapStyle/bootstrapStyle.css" rel="stylesheet" />
        <link href="~/lib/vue/css/iview.css" rel="stylesheet" asp-append-version="true" />
        @RenderSection("masterCss", required: false)

        <link href="~/css/layout-master.css" rel="stylesheet" />
    </environment>

    <environment names="Staging,Production">
        @RenderSection("masterCss", required: false)
    </environment>
    <!-- View specific styles -->
    @RenderSection("styles", required: false)

    <script type="text/javascript">
        // This is used to get the application's root path from javascript. It's useful if you're running application in a virtual directory under IIS.
        var abp = abp || {};
        abp.appPath = '@ApplicationPath';
    </script>

</head>
<body>
    <environment names="Development">
        <script src="~/lib/jquery/dist/jquery.js" asp-append-version="true"></script>
        <script src="~/lib/bootstrap/dist/js/bootstrap.js" asp-append-version="true"></script>
        <script src="~/lib/ztree/js/jquery.ztree.all.js"></script>
        
        <script src="~/lib/blockUI/jquery.blockUI.js" asp-append-version="true"></script>
        <script src="~/lib/toastr/toastr.js" asp-append-version="true"></script>
        <script src="~/lib/sweetalert/dist/sweetalert.min.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/abp.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.jquery.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.toastr.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.blockUI.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.spin.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.sweet-alert.js" asp-append-version="true"></script>
        <script src="~/js/components/dropdownTree-component.js" asp-append-version="true"></script>
        <script src="//vuejs.org/js/vue.min.js"></script>
        <script src="//unpkg.com/iview/dist/iview.min.js"></script>
        @*<script src="~/lib/vue/vue.js"></script>
        <script src="~/lib/vue/ivew.js"></script>*@
        @RenderSection("MasterScripts", false)

    </environment>

    <environment names="Staging,Production">
        @RenderSection("MasterScripts", false)
    </environment>

    <script>
    </script>

    <!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
    <script src="~/AbpServiceProxies/GetAll?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>
    <script src="~/AbpScripts/GetScripts?v=@(AppTimes.StartupTime.Ticks)" type="text/javascript"></script>

    @*<script src="~/lib/signalr-client/signalr.min.js" asp-append-version="true"></script>
        <script src="~/lib/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js" asp-append-version="true"></script>*@


    @WebResourceManager.RenderScripts()
    <!-- View specific scripts -->

    <div class="body-content">
        @RenderBody()
    </div>

    @RenderSection("scripts", required: false)

    @*<script>

        $(function () {
            //权限判断
            $("button[auth-code],a[auth-code],input[auth-code]").each(function (i, e) {
                var clickFuncScript = $(e).attr("onclick");
                var authorityCode = $(e).attr("auth-code");
                var authorityMesage = $(e).attr("auth-text");

                var events = $._data(e, "events");
                var clickEvents = [];

                if (events != undefined && events.click) {
                    for (var j = 0; j < events.click.length; j++) {
                        clickEvents.push(events.click[j]);
                    }
                }

                $(e).attr("onclick", "");

                $(e).unbind("click");

                $(e).click(function () {
                    onAuthValidation(authorityCode, clickFuncScript, clickEvents, authorityMesage);
                });
            });
        })
    </script>*@
</body>
</html>
